using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace nms.gaming.rng.model
{
	[DataContract(Name="number", Namespace="nms.gaming.rng")]
	public class RandomNumber : INotifyPropertyChanging, INotifyPropertyChanged
	{

		[DataMember(Order=0, Name="index", IsRequired=true)]
		public int Index
		{
			get;
			set;
		}

		[DataMember(Order=1, Name="value", IsRequired=true)]
		public int Value
		{
			get;
			set;
		}

		public RandomNumber(int index, int value)
		{
			this.Index = index;
			this.Value = value;
		}

		public event PropertyChangedEventHandler PropertyChanged;
		public event PropertyChangingEventHandler PropertyChanging;
	}
}